package javase.implements_abstract_extend_clone;

class PersonalOrder extends Order{
    public PersonalOrder(Integer orderNo, String orderName, Double orderPrice, Integer orderNumber) {
        super(orderNo, orderName, orderPrice, orderNumber);
    }

    public PersonalOrder() {
    }

    @Override
    public Order cloneOrder() {
        PersonalOrder personalOrder = new PersonalOrder();
        personalOrder.setOrderNo(this.getOrderNo());
        personalOrder.setOrderName(this.getOrderName());
        personalOrder.setOrderPrice(this.getOrderPrice());
        personalOrder.setOrderNumber(this.getOrderNumber());
        return personalOrder;
    }
}
